package com.hopu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hopu.domain.Factoryc;
import com.hopu.mapper.FactorycMapper;

@Service
public class FactorycService {
    @Autowired
    private FactorycMapper factorycMapper;

    public List<Factoryc> findAll() {
        return factorycMapper.findAll();
    }

    public void insert(Factoryc factoryc) {
        factorycMapper.insert(factoryc);
    }

    public Factoryc findById(String id) {
        return factorycMapper.findById(id);
    }

    public void update(Factoryc factoryc) {
        factorycMapper.update(factoryc);

    }

    public void stopState(String id) {
        factorycMapper.stopState(id);

    }

    public void startState(String id) {
        factorycMapper.startState(id);

    }

    public void delete(String id) {
        factorycMapper.delete(id);
    }

    public List<Factoryc> findState(String state) {
        return factorycMapper.findState(state);
    }
}